include ../Makefile.shared

define PROJ_circuit
  SOURCES = acParseType.ml acParser.mly acLexer.mll node.ml circuit.ml 
  RESULT = circuit
endef
export PROJ_circuit

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = circuit
endif

export LIBS=ext str unix mn

interface:
	ocamlc -I ../ext -I ../mn -i circuit.ml > circuit.mli

# Default target to use
all: ncl
	cp circuit.mli circuit.cmi circuit.cmxa circuit.a $(SRCLIBDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
